package net.zoneland.knowledge.service;

import java.util.List;
import net.zoneland.knowledge.model.QaRecordsV2;
import net.zoneland.knowledge.model.StatisticsBo;

/**
 * .
 *
 * @author: bcc
 * 2021/6/8
 */
public interface QaRecordsV2Service {

    List<StatisticsBo> queryHotQuestion(String companyDn, String category);

    List<StatisticsBo> querySearchQuestion(String companyDN, String value);

    QaRecordsV2 getById(String id);

    void update(QaRecordsV2 qaRecordsV2);

    List<QaRecordsV2> getFirstSessionId(String userID, String talkSessionId);

    /**
     * 获取当前用户成功问答最新记录
     * @Author Pbody
     * @Date 11:31 2020/5/12
     * @Param [userId，queName，finalAnswer]
     * @return QaRecords
     **/
    QaRecordsV2 getNewRecordByQueId(String userId,String queName,int finalAnswer) throws Exception;
}
